<template>
	<view>
		<el-dialog title="提示" :visible.sync="dialogVisible" width="30%" >
			<span>登录信息已经过期，请重新登录！</span>
			<span slot="footer" class="dialog-footer">
				<el-button type="primary" @click="queren">确 定</el-button>
			</span>
		</el-dialog>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dialogVisible: false
			}
		},
		created() {
			if(uni.getStorageSync('uni_id_token')&&uni.getStorageSync('uni_id_token_expired')){
			}else{
				this.dialogVisible=true
			}
		},
		methods:{
			panduan(){
				if(uni.getStorageSync('uni_id_token')&&uni.getStorageSync('uni_id_token_expired')){
				}else{
					this.dialogVisible=true
				}
			},
			queren(){
				this.dialogVisible=false
				 uni.clearStorageSync();
				uni.reLaunch({
					url:'../../login/login'
				})
			},
			open(){
				this.dialogVisible=true
			}
		}
	}
</script>

<style>

</style>
